dynamic class classes.Game_sounds
{
    var _sndTrack;

    function Game_sounds()
    {
    }

    function menuSoundtrack()
    {
        if (_global.ARE_SOUNDS == true) 
        {
            this._sndTrack.stop();
            this._sndTrack = new Sound();
            this._sndTrack.attachSound("menu1");
            this._sndTrack.start(0, 1);
            this._sndTrack.onSoundComplete = mx.utils.Delegate.create(this, this.menuSoundtrack2);
        }
    }

    function menuSoundtrack2()
    {
        if (_global.ARE_SOUNDS == true) 
        {
            delete this._sndTrack.onSoundComplete;
            this._sndTrack.stop();
            this._sndTrack = new Sound();
            this._sndTrack.attachSound("menu2");
            this._sndTrack.start(0, 99999);
        }
    }

    function gameSoundtrack()
    {
        if (_global.ARE_SOUNDS == true) 
        {
            this._sndTrack.stop();
            this._sndTrack = new Sound();
            this._sndTrack.attachSound("gra");
            this._sndTrack.start(0, 99999);
        }
    }

    function killSoundtrack()
    {
        this._sndTrack.stop();
    }

    function soundsON(track)
    {
    }

    function playSound(snd)
    {
        if (_global.ARE_SOUNDS == true) 
        {
            var __reg2 = new Sound();
            __reg2.attachSound(snd);
            __reg2.start();
        }
    }

}
